package lab.gene.pojo;

import java.util.Date;
import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import lab.user.pojo.User;

@Entity
@Table(name = "genomic_prep_final")
public class GenePrepFinals implements Serializable {

	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue
	@Column(name="id")
	private int id;
	
	@ManyToOne(targetEntity = User.class)
    @JoinColumn(name = "username")
	private User user;
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	
	@ManyToOne(targetEntity = Gene.class)
    @JoinColumn(name = "genename")
	private Gene gene;
	public Gene getGene() {
		return gene;
	}
	public void setGene(Gene gene) {
		this.gene = gene;
	}
	
	@Column(name="gp_type")
	private String type;
	@Column(name="expected_size1")
	private int exsize1;
	@Column(name="pcr1")
	private String pcr1;
	@Column(name="expected_size2")
	private int exsize2;
	@Column(name="pcr2")
	private String pcr2;
	@Temporal(TemporalType.DATE)
	@Column(name="record_date1")
	private Date date1;
	@Temporal(TemporalType.DATE)
	@Column(name="record_date2")
	private Date date2;
	@Temporal(TemporalType.DATE)
	@Column(name="record_date3")
	private Date date3;
	@Column(name="checked1")
	private String checked1;
	@Column(name="checked2")
	private String checked2;
	@Column(name="checked3")
	private String checked3;
	@Column(name="comments")
	private String comments;
	
	@Column(name="date_modified")
	private Date dateModified;
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public int getExsize1() {
		return exsize1;
	}
	public void setExsize1(int exsize1) {
		this.exsize1 = exsize1;
	}
	public String getPcr1() {
		return pcr1;
	}
	public void setPcr1(String pcr1) {
		this.pcr1 = pcr1;
	}
	public int getExsize2() {
		return exsize2;
	}
	public void setExsize2(int exsize2) {
		this.exsize2 = exsize2;
	}
	public String getPcr2() {
		return pcr2;
	}
	public void setPcr2(String pcr2) {
		this.pcr2 = pcr2;
	}
	public Date getDate1() {
		return date1;
	}
	public void setDate1(Date date1) {
		this.date1 = date1;
	}
	public Date getDate2() {
		return date2;
	}
	public void setDate2(Date date2) {
		this.date2 = date2;
	}
	public Date getDate3() {
		return date3;
	}
	public void setDate3(Date date3) {
		this.date3 = date3;
	}
	public String getChecked1() {
		return checked1;
	}
	public void setChecked1(String checked1) {
		this.checked1 = checked1;
	}
	public String getChecked2() {
		return checked2;
	}
	public void setChecked2(String checked2) {
		this.checked2 = checked2;
	}
	public String getChecked3() {
		return checked3;
	}
	public void setChecked3(String checked3) {
		this.checked3 = checked3;
	}
	public String getComments() {
		return comments;
	}
	public void setComments(String comments) {
		this.comments = comments;
	}
	
	public Date getDateModified() {
		return dateModified;
	}
	public void setDateModified(Date dateModified) {
		this.dateModified = dateModified;
	}

}
